package com.timberwood.view;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.timberwood.controller.CategoryController;
import com.timberwood.model.Category;

public class CategoryAction extends ActionSupport{
	private static final long serialVersionUID = -1682533867154609212L;
	
	private CategoryController catecontroller;
	
	public CategoryAction() {
		catecontroller=new CategoryController();
		
	}
	
	//load list category
	private List<Category> listcate=null;

	public List<Category> getListcate() {
		return listcate;
	}
	public void setListcate(List<Category> listcate) {
		this.listcate = listcate;
	}
	
	public String getListCate(){
		listcate=catecontroller.listCategory();
		return SUCCESS;
	}
	
	
	
	
	
}
